package com.ssy.lingxi.logistics.api.dto.request;

import java.io.Serializable;

/**
 * 订单服务拆单后包含在商品中的运费相关信息
 * @author 万宁
 * @version 2.0.0
 * @date 2021-09-18
 */
public class OrderSeparateProductFreightDetail implements Serializable {
    private static final long serialVersionUID = -4466004860463202140L;

    public OrderSeparateProductFreightDetail() {
    }

    public OrderSeparateProductFreightDetail(Long receiverAddressId, Long templateId, Double count, Double weight) {
        this.receiverAddressId = receiverAddressId == null ? 0L : receiverAddressId;
        this.templateId = templateId == null ? 0L : templateId;
        this.count = count == null ? 0D : count;
        this.weight = weight == null ? 0D : weight;
    }

    private Long receiverAddressId;

    /**
     * 运费模板id
     */
    private Long templateId;

    /**
     * 数量
     */
    private Double count;

    /**
     * 单件重量(KG)
     */
    private Double weight;

    public Long getReceiverAddressId() {
        return receiverAddressId;
    }

    public void setReceiverAddressId(Long receiverAddressId) {
        this.receiverAddressId = receiverAddressId;
    }

    public Long getTemplateId() {
        return templateId;
    }

    public void setTemplateId(Long templateId) {
        this.templateId = templateId;
    }

    public Double getCount() {
        return count;
    }

    public void setCount(Double count) {
        this.count = count;
    }

    public Double getWeight() {
        return weight;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }
}
